package com.wfk.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author Peng
 * @since 2019-01-12
 */
@TableName("t_goods")
public class Goods implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@TableField(exist=false)
	private List<SysService> sysService;
	@TableField(exist=false)
	private List<GoodsSpec> goodsSpec;
	@TableId(type=IdType.INPUT)
	private String goodsCode;

	private String title;

	private Integer serviceId;
	
	private Integer specid;
	/**
	 * 每日收益
	 */
	private BigDecimal dayProfit;

	private BigDecimal price;

	/**
	 * 1上架中，2已下架
	 */
	private Integer status;

	/**
	 * 封面图
	 */
	private String purl;

	/**
	 * 图片路径
	 */
	private String url;

	/**
	 * 已售数量
	 */
	private Integer sellNumber;

	/**
	 * 图文详细
	 */
	private String imgDetail;

	/**
	 * 商品参数
	 */
	private String goodsDetail;

	/**
	 * 乐观锁
	 */
	@Version
	private Integer version;

	private Date createtime;
	/**
	 * 0不是体验机
	 */
	private Integer type;
	/**
	 * 扫描天数
	 */
	private Integer scanDay;

	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getScanDay() {
		return scanDay;
	}
	public void setScanDay(Integer scanDay) {
		this.scanDay = scanDay;
	}
	public void setDayProfit(BigDecimal dayProfit) {
		this.dayProfit = dayProfit;
	}
	public BigDecimal getDayProfit() {
		return dayProfit;
	}
	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getServiceId() {
		return serviceId;
	}

	public void setServiceId(Integer serviceId) {
		this.serviceId = serviceId;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getPurl() {
		return purl;
	}

	public void setPurl(String purl) {
		this.purl = purl;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getSellNumber() {
		return sellNumber;
	}

	public void setSellNumber(Integer sellNumber) {
		this.sellNumber = sellNumber;
	}

	public String getImgDetail() {
		return imgDetail;
	}

	public void setImgDetail(String imgDetail) {
		this.imgDetail = imgDetail;
	}

	public String getGoodsDetail() {
		return goodsDetail;
	}

	public void setGoodsDetail(String goodsDetail) {
		this.goodsDetail = goodsDetail;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public void setSpecid(Integer specid) {
		this.specid = specid;
	}
	public Integer getSpecid() {
		return specid;
	}

	public List<SysService> getSysService() {
		return sysService;
	}

	public void setSysService(List<SysService> sysService) {
		this.sysService = sysService;
	}

	public List<GoodsSpec> getGoodsSpec() {
		return goodsSpec;
	}

	public void setGoodsSpec(List<GoodsSpec> goodsSpec) {
		this.goodsSpec = goodsSpec;
	}
	
	
}
